package com.bolt.admin.module.sys.entity;

import com.bolt.support.spring.jpa.entity.BaseEntity;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;


@Access(AccessType.FIELD)
@Entity
@Table(name = "SYS_PRIVILEGE_EXT")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class PrivilegeExt extends BaseEntity<String> {

    private static final long serialVersionUID = -3924516771327008995L;

    @Id
    @Column(length = 40)
    private String id;


    @Column(name = "DOM_ID", length = 32)
    private String domId;

    @Column(length = 42)
    private String icon;

    @Column(name = "DATA_OPTIONS", length = 128)
    private String dataOptions;

    @Column(name = "DATA_TOGGLE", length = 12)
    private String dataToggle;

    @Column(name = "DATA_URL", length = 128)
    private String dataUrl;

    @Column(name = "DATA_GRID_ID", length = 62)
    private String dataGridId;

    @Column(name = "BIND_FORM", length = 12)
    private String bindForm;

    @Column(name = "CALL_FUN", length = 42)
    private String callFun;

    @Column(name = "ID_FIELD", length = 10)
    private String idField;

    @Override
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getDomId() {
        return domId;
    }

    public void setDomId(String domId) {
        this.domId = domId;
    }

    public String getDataOptions() {
        return dataOptions;
    }

    public void setDataOptions(String dataOptions) {
        this.dataOptions = dataOptions;
    }

    public String getDataToggle() {
        return dataToggle;
    }

    public void setDataToggle(String dataToggle) {
        this.dataToggle = dataToggle;
    }

    public String getDataUrl() {
        return dataUrl;
    }

    public void setDataUrl(String dataUrl) {
        this.dataUrl = dataUrl;
    }

    public String getDataGridId() {
        return dataGridId;
    }

    public void setDataGridId(String dataGridId) {
        this.dataGridId = dataGridId;
    }

    public String getBindForm() {
        return bindForm;
    }

    public void setBindForm(String bindForm) {
        this.bindForm = bindForm;
    }

    public String getCallFun() {
        return callFun;
    }

    public void setCallFun(String callFun) {
        this.callFun = callFun;
    }

    public String getIdField() {
        return idField;
    }

    public void setIdField(String idField) {
        this.idField = idField;
    }


}
